package com.njlime.member.repository.app;

import com.njlime.core.helper.PageBean;
import com.njlime.member.entiies.MemberFocus;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * Created by Dean on 2017-10-09.
 */
public interface AppMemberFocusDao extends JpaRepository<MemberFocus, Integer>,JpaSpecificationExecutor<MemberFocus> {
    PageBean getByMemberId(PageBean pageBean, Integer member_id);
    int isFocus(int unit_id, int user_id);
    void del(int unit_id, int user_id);
    int focusNum(int unit_id);
}
